//
//  BVFavoriteTableViewCell.m
//  BVHomeScene
//
//  Created by xiute on 2019/10/20.
//

#import "BVFavoriteTableViewCell.h"
#import "UIImageView+BVWebCache.h"

@interface BVFavoriteTableViewCell ()

@property (weak, nonatomic) IBOutlet UIView *containerView;


@end

@implementation BVFavoriteTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.imageV.layer.cornerRadius = 11;
    self.imageV.clipsToBounds = YES;
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    
    self.containerView.layer.shadowColor = [UIColor colorWithWhite:0 alpha:0.2].CGColor;
    self.containerView.layer.shadowOffset = CGSizeMake(10, 10);
    self.containerView.layer.shadowRadius = 4;
    self.containerView.layer.shadowOpacity = 10;
    self.clipsToBounds = NO;
    self.layer.masksToBounds = NO;
    self.contentView.clipsToBounds = NO;
    self.contentView.layer.masksToBounds = NO;
}

- (void)configWithModel:(BVMetaModel *)model {
    [self.imageV bv_imageWithUrl:model.cover];
}

+ (CGFloat)cellHeight {
    return (kSCREEN_WIDTH - 44) * 0.563 + 25;
}

@end
